/*
 * @Author: jiu yin
 * @Date: 2023-04-27 15:08:38
 * @LastEditTime: 2023-06-07 15:08:09
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \AI admin\src\router\routerArr.tsx
 * jiu
 */
import React from "react";
import lazyLoad from "@/router/utlis/lazy";
import Layout from "@/layout/index";
let routeArr = [
	{
		path: "/",
		element: <Layout />,
		meta: {
			name: "首页",
			icon: "HighlightOutlined"
		},
		children: [
			{
				path: "/",
				element: lazyLoad(React.lazy(() => import("@/view/home"))),
			}
		]

	},

	{
		path: "/instruct",
		element: <Layout />,
		key:"a",
		meta: {
			name: "AI指令服务",
			icon: "HighlightOutlined"
		},
		children: [
			{
				path: "intention",
				element: lazyLoad(React.lazy(() => import("@/view/intention"))),
				meta: {
					name: 'AI语音意图表',
					icon: "HighlightOutlined",
					key:"aa",
					tier:1,
				},
			},
			{
				path: "intention/rule",
				element: lazyLoad(React.lazy(() => import("@/view/intention/detail"))),
				meta: {
					name: '新增意图匹配规则',
					icon: "HighlightOutlined",
					hidden: true,
					key:"aa",
				},
			},


			{
				path: "scene",
				element: lazyLoad(React.lazy(() => import("@/view/scene"))),
				meta: {
					name: 'AI场景表',
					icon: "CarFilled",
					key:"ab",
					tier:1,
				},
			},
			{
				path: "gender",
				element: lazyLoad(React.lazy(() => import("@/view/gender"))),
				meta: {
					name: 'AI性别表',
					icon: "CarFilled",
					key:"ac",
					tier:1,
				}
			},
			{
				path: "32",
				element: lazyLoad(React.lazy(() => import("@/view/media"))),
				meta: {
					name: 'AI媒体表',
					icon: "CarFilled",
					key:"ad",
					tier:1,
				}
			},
			{
				path: "tag",
				element: lazyLoad(React.lazy(() => import("@/view/tag"))),
				meta: {
					name: '标签库',
					icon: "CarFilled",
					key:"ae",
					tier:1,
				}
			}
		]

	},

	{
		path: "/admin",
		element: <Layout />,
		meta: {
			name: "系统配置",
			icon: "HighlightOutlined",
			key:"b",
		},
		children: [
			{
				path: "role",
				element: lazyLoad(React.lazy(() => import("@/view/adminRole"))),
				meta: {
					name: 'admin角色设置',
					icon: "HighlightOutlined",
					key:"ba",
					tier:1,
				}
			},
			{
				path: "user",
				element: lazyLoad(React.lazy(() => import("@/view/adminUser"))),
				meta: {
					name: 'admin账号管理',
					icon: "CarFilled",
					key:"bb",
					tier:1,
				},
			},
		]

	},

]

export default routeArr;
